home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / sys / Timeb.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-16  |  929 b   |  57 lines

  1. /* Copyright (C) 1986-1994 by Digital Mars. $Revision: 1.1.1.1 $ */
  2. #if __SC__ || __RCC__
  3. #pragma once
  4. #endif
  5.  
  6.  
  7. #ifndef __SYS_TIMEB_H
  8. #define __SYS_TIMEB_H 1
  9.  
  10. #if __cplusplus
  11.   extern "C" {
  12. #endif
  13.  
  14. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  15. #ifndef _CRTAPI1
  16. #define _CRTAPI1 __cdecl
  17. #endif
  18.  
  19. /* Define _CRTAPI2 (for compatibility with the NT SDK) */
  20. #ifndef _CRTAPI2
  21. #define _CRTAPI2 __cdecl
  22. #endif
  23.  
  24. /* Define CRTIMP */
  25. #ifndef _CRTIMP
  26. #if defined(_WIN32) && defined(_DLL)
  27. #define _CRTIMP  __declspec(dllimport)
  28. #else
  29. #define _CRTIMP
  30. #endif
  31. #endif
  32.  
  33. typedef long time_t;
  34.    
  35. #pragma pack (__DEFALIGN)
  36.   struct _timeb
  37.   {
  38.     time_t time;
  39.     unsigned short millitm;
  40.     short timezone, dstflag;
  41.   };
  42. #pragma pack ()
  43.  
  44. void __cdecl _ftime (struct _timeb *);
  45.  
  46. #if !__STDC__
  47. # define ftime _ftime
  48. # define timeb _timeb
  49. #endif
  50.  
  51. #if __cplusplus
  52.   }
  53. #endif
  54.  
  55. #endif
  56.  
  57.